package com.ruoyi.background.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 积分抽奖奖品对象 app_lottery_prize
 *
 * @author susu
 * @date 2024-08-24
 */
public class AppLotteryPrize extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 照片
     */
    @Excel(name = "照片")
    private String image;

    /**
     * 中奖概率
     */
    @Excel(name = "中奖概率")
    private Double range;

    /**
     *
     */
    private Double cumulativeProbability;

    private Double beginProbability;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private Integer num;

    /**
     * 背景颜色
     */
    @Excel(name = "背景颜色")
    private String backgroundColor;

    /**
     * 字体颜色
     */
    @Excel(name = "字体颜色")
    private String fontColor;

    /**
     * 字体大小
     */
    @Excel(name = "字体大小")
    private Long fontSize;

    /**
     * 0正常 1停用
     */
    @Excel(name = "0正常 1停用")
    private Integer status;

    /**
     * 0正常 1删除
     */
    private Integer delFlag;

    public Double getBeginProbability() {
        return beginProbability;
    }

    public void setBeginProbability(Double beginProbability) {
        this.beginProbability = beginProbability;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public Double getCumulativeProbability() {
        return cumulativeProbability;
    }

    public void setCumulativeProbability(Double cumulativeProbability) {
        this.cumulativeProbability = cumulativeProbability;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImage() {
        return image;
    }

    public void setRange(Double range) {
        this.range = range;
    }

    public Double getRange() {
        return range;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getNum() {
        return num;
    }

    public void setBackgroundColor(String backgroundColor) {
        this.backgroundColor = backgroundColor;
    }

    public String getBackgroundColor() {
        return backgroundColor;
    }

    public void setFontColor(String fontColor) {
        this.fontColor = fontColor;
    }

    public String getFontColor() {
        return fontColor;
    }

    public void setFontSize(Long fontSize) {
        this.fontSize = fontSize;
    }

    public Long getFontSize() {
        return fontSize;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("image", getImage())
                .append("range", getRange())
                .append("num", getNum())
                .append("backgroundColor", getBackgroundColor())
                .append("fontColor", getFontColor())
                .append("fontSize", getFontSize())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
